package ua.com.globallogic.basecamp.krasnyanskiy.dds;

import ua.com.globallogic.basecamp.krasnyanskiy.dds.list.SimpleList;
import ua.com.globallogic.basecamp.krasnyanskiy.dds.tree.SimpleTree;

import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        SimpleTree<Integer> tree = new SimpleTree<Integer>();
        SimpleList<String> list = new SimpleList<String>();

        tree.insert(1);
        tree.insert(3);
        tree.insert(6);

        System.out.println(Arrays.asList(tree.print()) + "\n");

        list.insert("A");
        list.insert("B");
        list.insert("C");
        list.remove(0);

        for (String s : list) {
            System.out.println(s);
        }
    }
}
